{* <div class="containertable"> *}

{if $banner}
    <p>{$banner}</p>
{/if}

{* if $index_catid==0 *}


{if $set_special==1 and $special_list != null}
    <!-- PREMIUM ADS AND PREMIUM PICTURE ADS FP-->
	<div style="margin-top:4px;" class="titulo">
		<h3>Destacados</h3>
	</div>
	
    {if $index_catid >= -10}
	<div id="premium-container">
		<ol class="premium">
        {foreach item=special from=$special_list}

            <li class="premium">
			{if $premium_picture==1}
				<div align="center">
				<a href="{$special.s_link}" style="clear:both;" class="thumb" title="{$image.alt}">
					<img src="images/{$special.filename}" alt="{$special.alt}" hspace="2" border="0" alt="" width="70" />
				</a>
				</div>
			{/if}
			<div style="margin-left: 0px; margin-top: 3px;">
				<img src="layout_images/admin/special.gif" align="left" alt="" style="margin-right: 5px" /><a href="{$special.s_link}"><img src="layout_images/pointer.gif" border="0" alt="" />{$special.s_title}</a>
			 </div>
            </li>
        {/foreach}

		</ol>	
	</div>
	{/if}	
{/if}

<div id="fp_container"  style="clear:both; height:auto;">
	{if $isFrontpage }
	<!--
    	<div id="right_col" style="position:relative; right:0px; height:auto;">
			    <div id="banner_vertical_front" style="width:145px; height: 100%; float: right;">
                    <table cellpadding="0" cellspacing="0" width="135" border="0" align="right" height="100%">
                    <tr><td width="10"></td>
                    <td align="right" valign="top">
				    {php}
						$section="banner_principal_01";
						include "ad_get.php";
					{/php}
					<div style="margin-top: 10px;" >
					{php}
						$section="banner_principal_02";
						include "ad_get.php";
					{/php}
					</div>						
					<div style="margin-top: 10px;" >
					{php}
						$section="banner_principal_03";
						include "ad_get.php";
					{/php}
					</div>						
                    </td></tr></table>
				</div>
		</div>
		<div id="main_col" style="width:765px; position:absolute;height: auto;background-image:url(layout_images/new/separador_vert750.gif); background-repeat:repeat-y; background-position: 20px 0; padding-right:15px;"> {*Este es el tag div de inicio si estamos en la parte del front *}
	-->
    {else}
			{*<!-- --------Banners verticales derecha en CONOS ----------------->*}			
		
		{*if $isMercado*}
            <div id="right_col" style="right:0px; float:right; height:0px;">
        
            <table cellpadding="0" cellspacing="0" width="135" border="0" align="right">
            <tr><td width="10"></td>
            <td align="right" valign="top">
			<div id="banner_vertical_front" style="width:135px; float: right; class="">
			{if $bannerHid==$smarty.const.ID_CAT_COMPRA}	
					    {php}
							//$section="banner_compra_vertical_01";
                            $section="banner_compra_vertical_04";
							include "ad_get.php";
						{/php}
						<div style="margin-top: 10px;" >
						{php}
							$section="banner_compra_vertical_02";
							include "ad_get.php";
						{/php}
						</div>
						<div style="margin-top: 10px;" >
						{php}
							$section="banner_compra_vertical_03";
							include "ad_get.php";
						{/php}
						</div>	
			{elseif $bannerHid==$smarty.const.ID_CAT_ALQUILER}
			 			{php}
							$section="banner_alquiler_vertical_01";
							include "ad_get.php";
						{/php}
						<div style="margin-top: 10px;" >
						{php}
							$section="banner_alquiler_vertical_02";
							include "ad_get.php";
						{/php}
						</div>
						<div style="margin-top: 10px;" >
						{php}
							$section="banner_alquiler_vertical_03";
							include "ad_get.php";
						{/php}
						</div>
			{elseif $bannerHid==$smarty.const.ID_CAT_SERVICIOS}
			 			{php}
							$section="banner_servicios_vertical_01";
							include "ad_get.php";
						{/php}
						<div style="margin-top: 10px;" >
						{php}
							$section="banner_servicios_vertical_02";
							include "ad_get.php";
						{/php}
						</div>
						<div style="margin-top: 10px;" >
						{php}
							$section="banner_servicios_vertical_03";
							include "ad_get.php";
						{/php}
						</div>
			{/if}
			</div>		
                    </td></tr></table>
		</div>
		{*/if*}
		{*<!-- -------------FIN Banners izquierda -------------->*}
		<div id="main_col" style="width:765px; height: auto;background-image:url(/layout_images/new/separador_vert750.gif); background-repeat:repeat-y; background-position: 20px 0; padding-right:15px;" />	 {*Este es el tag div de inicio si estamos en la parte caetegorias *}
	{/if}		
		{* if $index_catid==0 *}
		{if $isFrontpage}
		<input type="hidden" value="1" id="tag_aux_is_front"/>

        <table cellpadding="0" cellspacing="0" border="0" width="900" align="center">
        <tr>
            <td width="214" valign="top">
            
                {php}include("categorias-home.php");{/php}

			</td>

            <td width="1" style="background:url(/layout_images/new/separador_vertical.jpg); background-repeat:repeat-y;"></td>

            <td width="685" valign="top">
                <table cellpadding="0" cellspacing="0" width="100%" border="0">
                    <tr><td colspan="3" align="center" style="padding-bottom:12px;">
                    {php}
                    $section = 'banner_section1'; //"banner_central";
                    include "ad_get.php";
                    {/php}
                    {literal}
                    <script language="javascript">
                        $(function() {
                            $("#fb_banner").fancybox();
                        });
                    </script>
                    {/literal}
                    </td></tr>
                    <tr>
                        <td width="549" valign="top">
                        	<table cellpadding="0" cellspacing="0" width="100%" border="0">
                            	<tr>
                                    <td valign="top" width="295" align="left" style="padding-left:10px;">
                                        <div style="position:absolute;">    
                                            {include file="buscador_mini.tpl"}
                                        </div>
                                    </td>
                                    <td valign="top" width="254" align="right">
                                        {include file="top_centro.tpl"}
                                    </td>
                                 </tr>
                                 <tr>
                                 	<td colspan="2" valign="top" style="padding-top:15px; padding-left:10px;">
                                    {php}include("destacados.php");{/php}
                                    </td>
                                 </tr>
                            </table>
						  </td>
                        <td width="1" style="background:url(/layout_images/new/separador_vertical.jpg); background-repeat:repeat-y;"></td>

                        <td valign="top">
                                            <table cellpadding="0" cellspacing="0" width="135" border="0" align="right" height="100%">
                                            <tr><td width="10"></td>
                                            <td align="right" valign="top">   
                                            {php}
                                                $section="banner_principal_01";
                                                include "ad_get.php";
                                            {/php}
                                            <div style="margin-top: 10px;" >
                                            {php}
                                                $section="banner_principal_02";
                                                include "ad_get.php";
                                            {/php}
                                            </div>						
                                            <div style="margin-top: 10px;" >
                                            {php}
                                                $section="banner_principal_03";
                                                include "ad_get.php";
                                            {/php}
                                            </div>						
                                            </td></tr></table>
                        </td>
                    </tr>
                    
                    <tr><td colspan="3" align="center" height="8"></td></tr>
                    <tr><td colspan="3"><img src="layout_images/new/tit_busca_por_marca.jpg" alt="Busca por Marca" title="Busca por Marca"</td></tr>
                    <tr><td colspan="3" height="8"></td></tr>
                    <tr><td colspan="3">
                    {php}include("buscador_marcas.php");{/php}
                    </td></tr>
                </table>
            </td>
        </tr>
        </table>


 		{/if}
 		<div>
		
        {if $isFrontpage}
        {php}$_SESSION["homepage"]=1;{/php}
        {else}                                      
        {php}$_SESSION["homepage"]="a0";{/php}
		{php}include("catcol.php");{/php}				
        {php}include("links.php");{/php}
        {/if}
        {php}include("footer_adjust.php");{/php}
		</div>	
		<!-- SHOW LIST -->	
	<!-- by dhaval  </div>-->
</div>
<!-- END INDEX.TPL -->
